package com.ant.storage.pojo;

import com.ant.storage.vo.SalesCommodityVo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2022-11-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Sales对象", description="")
public class Sales implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("odd_numbers")
    private String oddNumbers;

    @TableField("city_id")
    private Integer cityId;

    @TableField("dep_id")
    private Integer depId;

    @TableField("warehouse_id")
    private Integer warehouseId;

    private String quantity;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("备注")
    private String notes;

    @TableField("creation_by")
    private String creationBy;

    @TableField("creation_time")
    private Date creationTime;

    @ApiModelProperty("是否删除")
    @TableField("is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private List<SalesCommodityVo> detailsList;

}
